<template>
    <el-menu router unique-opened active-text-color="#ff3366" >
        <el-sub-menu index="index">                                         
            <template #title>
                <el-icon>
                    <location />
                </el-icon>
                <span>首页</span>
            </template>
        </el-sub-menu>
        <el-sub-menu index="2">
            <template #title>
                <el-icon>
                    <IconMenu />
                </el-icon>
                <span>系统管理</span>
            </template>
            <el-menu-item-group>
                <el-menu-item index="setshop">菜单管理</el-menu-item>
                <el-menu-item index="setpeople">角色管理</el-menu-item>
            </el-menu-item-group>
        </el-sub-menu>
    </el-menu>
</template>

<script lang="ts" setup>

import {
    Menu as IconMenu,
    Location,
} from '@element-plus/icons-vue'
</script>

<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
}
</style>
